﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using RoadLaneDetection;
using System.IO;
using Counter;
using System.Diagnostics;

namespace Testing
{
    public partial class TestForm : Form
    {
        Bitmap testImage;
        public TestForm()
        {
            InitializeComponent();
            QueryPerfCounter timer = new QueryPerfCounter();
            timer.Start();
            testImage = new Bitmap(@"C:\\Documents and Settings\\vladi\\My Documents\\Visual Studio 2008\\Projects\\CarAutomation\\Testing\\test.bmp");
            RoadLane.Detect(testImage,0.9); //between 0.8 and 0.9
            imagePictureBox.Image = BitmapProcessing.BitmapDraw.Resize(
                testImage, imagePictureBox.Width, imagePictureBox.Height);
            timer.Stop();
            timer.DurationPerIteration();
            Debug.WriteLine(timer.DurationInMS.ToString("00.0") + " ms");
        }
    }
}
